import request from '@/utils/request'

// 查询接待登记列表
export function listRecord(query) {
  return request({
    url: '/workbenches/record/list',
    method: 'get',
    params: query
  })
}

// 查询接待登记详细
export function getRecord(manualRecordId) {
  return request({
    url: '/workbenches/record/' + manualRecordId,
    method: 'get'
  })
}

// 新增接待登记
export function addRecord(data) {
  return request({
    url: '/workbenches/record',
    method: 'post',
    data: data
  })
}

// 修改接待登记
export function updateRecord(data) {
  return request({
    url: '/workbenches/record',
    method: 'put',
    data: data
  })
}

// 删除接待登记
export function delRecord(manualRecordId) {
  return request({
    url: '/workbenches/record/' + manualRecordId,
    method: 'delete'
  })
}
